<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * list.php
 * @author ranuandra
 *
 * 10 Mei 2012 10:41:30
 *
 * 
 */
?>
<div class="container">
	<div class="row">
		<div class="span12">
			<img src="<?php echo URL::base()?>assets/images/karir.jpg" />
		</div>
	</div>
	<hr></hr>
	<div class="row">
		<div class="span12">
			<span class="pull-right">
				<a href="www.facebook.com"><img src="<?php echo URL::base()?>assets/images/glyphicons_390_facebook.png" /></a>
				<a href="www.twitter.com"><img src="<?php echo URL::base()?>assets/images/glyphicons_391_twitter_t.png" /></a>
			</span>
		</div>
	</div>
	<hr></hr>
	<div class="row">
		<div class="span8">
<?php 
	 if(count($datas) == 0)
	 {
?>
	<h2>Mohon maaf, saat ini belum ada lowongan yang tersedia</h2>
<?php 	 	
	 }
	 foreach($datas as $data)
	 {
?>
		<div class="row lowongan">
			<div class="span6">
				<h3><?php echo $data->deskripsi?></h3>
				<?php echo $data->kualifikasi_umum?>
				<p><a href="<?php echo URL::base()?>lowongan/detail/<?php echo $data->id?>" class="btn btn-warning">Detail >></a>
			</div>
			<div class="span2">
			<?php echo date("d-m-Y", strtotime( $data->dateto ) ) ?>
			</div>
		</div>
<?php 
	 }
?>
		</div>
		<div class="span4">
<?php
if(!Auth_ORM::instance()->logged_in())
{
?>  
			<div class="well center">
	        	<a href="<?php echo URL::base() ?>home/login" class="btn btn-success btn-medium">
	        		<i class="icon-lock icon-white"></i> Login
	        	</a>
	        	<a href="<?php echo URL::base() ?>home/register" class="btn btn-warning btn-medium">
	        		<i class="icon-user icon-white"></i> Registrasi
	        	</a>
        	</div>			
<?php 
}
?>
		</div>
	</div>
	<hr class="soften"></hr>
</div>